package cn.yunhe.hom3;

public class Student extends Person {
    private String grand;
    private String ban;

    public Student(String name, int age, String grand, String ban) {
        super(name, age);
        this.grand = grand;
        this.ban = ban;
    }

    public Student() {
    }

    @Override
    public String toString() {
        return super.toString()+"我是学生";
    }

    public String getGrand() {
        return grand;
    }

    public void setGrand(String grand) {
        this.grand = grand;
    }

    public String getBan() {
        return ban;
    }

    public void setBan(String ban) {
        this.ban = ban;
    }
}
